<?php

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function () {
    return view('welcome');
});

Route::group(['prefix'=>'Admin','namespace'=>'Admin'],function (){
    /*Route::resource('category','CategoryController ');*/
   /* Route::any('login','logincontroller@login');*/
    Route::resource('index','indexcontroller');
    Route::any('send','MailController@send');

   /* Route::any('email','MailController@email');*/

    Route::post('cate/changeorder','indexcontroller@changeorder');
    Route::resource('article','ArticleController');
    Route::any('upload','commencontroller@upload');

    Route::post('links/order','LinkseController@linksorder');
    Route::resource('links','LinkseController');

    Route::resource('config','ConfigController');
    Route::post('config/order','ConfigController@configorder');
    Route::post('config/change','ConfigController@change');
    Route::get('config/my/putfile','ConfigController@putFile');
    Route::post('Config/my/erwei','ConfigController@Erwei');
    Route::get('Config/my/geterwei','ConfigController@getErwei');
    Route::get('Config/my/shao','ConfigController@Shao');
    Route::any('Config/my/test','ConfigController@Test');

    Route::get('getselect','selectController@getselect');
    Route::post('postselect','selectController@postselect');






});
/*Route::any('test','CategoryController@test');*/

